package wqh.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wqh.dao.MapPosGeoDao;

import wqh.domain.MapPosGeo;
import wqh.service.MapPosGeoService;


import java.util.List;

/**
 * Created by devts on 2016/12/2.
 */

@Service("mapPosGeoService")
public class MapPosGeoServiceImpl implements MapPosGeoService {

    @Autowired
    private MapPosGeoDao mapPosGeoDao;

    public List<MapPosGeo> findAll() {
        return mapPosGeoDao.findAll();
    }

    public List<MapPosGeo> findByGeoId(Integer id) {
        return mapPosGeoDao.findByGeoId(id);
    }

    public List<MapPosGeo> findByGeoIdAndName(Integer id, String name) {
        return mapPosGeoDao.findByGeoIdAndName(id, name);
    }

    public int insert(MapPosGeo mapPosGeo) {
        return mapPosGeoDao.insert(mapPosGeo);
    }

    public int update(MapPosGeo mapPosGeo) {
        return mapPosGeoDao.update(mapPosGeo);
    }

    public int deleteById(Integer id) {
        return mapPosGeoDao.deleteById(id);
    }

    public int deleteByGeoId(Integer id) {
        return mapPosGeoDao.deleteByGeoId(id);
    }
}
